'use strict'

let path = require('path')

module.exports = (p) => {
  let arr = path.dirname(p).split(path.sep)
  arr.push(path.basename(p, path.extname(p)))
  return arr.join('.')
}
